# -*- coding:utf-8 -*-
import pickle

dict01 = {"a": 1, "b": 2, "c": 3}
pickle.dump(dict01, open('dick.pkl', 'wb'))  # 传入两个对象，wb二进制方式

res = pickle.load(open('dick.pkl', 'rb'))
print(res)
print(type(res))